package com.itheima.reggie.commom;

import com.itheima.reggie.domain.Employee;

/**
 * @author Sea
 * @date 2023/3/4 17:04
 */
public class EmployeeHolder {
    private static final ThreadLocal<Employee>cnm=new ThreadLocal<>();
    public static void set(Employee employee){
        cnm.set(employee);
    }
    public static Employee get() {
        return cnm.get();
    }
    public static void remove(){
        cnm.remove();
    }

}
